package com.ks.api.service;

import java.util.List;

import com.ks.api.entity.CultivationLevel;

public interface CultivationLevelService {
    
    List<CultivationLevel> findAllLevels();
    
    CultivationLevel findLevelById(Long id);
    
    CultivationLevel findLevelByScore(Integer score);
    
    CultivationLevel findLevelByStages(String majorStage, String minorStage, String microStage);
    
    List<CultivationLevel> findLevelsByMajorStage(String majorStage);
    
    boolean addLevel(CultivationLevel level);
    
    boolean updateLevel(CultivationLevel level);
    
    boolean deleteLevelById(Long id);
    
    boolean deleteAllLevels();
    
    /**
     * 根据积分获取当前修为等级
     */
    CultivationLevel getCurrentLevel(Integer score);
    
    /**
     * 获取下一个等级
     */
    CultivationLevel getNextLevel(Integer currentScore);
} 